package com.paas.form.core.element.control.impl.searchItem;

import com.paas.form.core.element.control.FormItem;
import com.paas.form.core.element.field.FieLdsModel;
import com.paas.form.core.element.jsContent.ScriptContent;
import lombok.Data;


@Data
public class ElDatePickerItem implements FormItem {
    private FieLdsModel field;
    private String htmlType;

    public static final String EL_DATE_PICKER_HTML = "<el-date-picker v-model=\"${formObject}.${field.vModel}\" value-format=\"yyyy-MM-dd HH:mm:ss\" format=\"yyyy-MM-dd HH:mm:ss\"\n" +
            "style=\"width: 100%;\"       class=\"item\" type=\"datetime\"\n" +
            "              clearable />";
    public ElDatePickerItem(FieLdsModel field,String htmlType){
        this.field = field;
        this.htmlType = htmlType;

    }


    @Override
    public String makeVue() {
        return EL_DATE_PICKER_HTML;
    }

    @Override
    public ScriptContent makeJs() {
        return null;
    }
}
